package jeons.common.zipcode.biz.impl;

import java.util.List;

import jeons.common.zipcode.biz.ZipCodeBiz;
import jeons.common.zipcode.dto.ZipCodeDTO;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional

public class ZipCodeBizImpl extends SqlMapClientDaoSupport implements ZipCodeBiz{
	@Autowired SqlMapClientTemplate sqlMapClientTemplate;
	
	
	@SuppressWarnings("unchecked")
	@Override
	public List<ZipCodeDTO> getDataDong(String dong) {
		return (List<ZipCodeDTO>) sqlMapClientTemplate.queryForList("Zipcode.getDataDong", dong);
	}

}
